﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// ProductData
	/// </summary>
    [Serializable]
	public class ProductData
	{
		/// <summary>
		/// ProductDataID
        /// </summary>
        [FieldName("ProductDataID")]		
		public int ProductDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductState
        /// </summary>
        [FieldName("ProductState")]		
		public int ProductState
		{
			get;
			set;
		}
        
		/// <summary>
		/// MerchantDataID
        /// </summary>
        [FieldName("MerchantDataID")]		
		public int MerchantDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// MerchantFactoryID
        /// </summary>
        [FieldName("MerchantFactoryID")]		
		public int MerchantFactoryID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductType
        /// </summary>
        [FieldName("ProductType")]		
		public int ProductType
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductKindID
        /// </summary>
        [FieldName("ProductKindID")]		
		public int ProductKindID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductName
        /// </summary>
        [FieldName("ProductName")]		
		public string ProductName
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductInfo
        /// </summary>
        [FieldName("ProductInfo")]		
		public string ProductInfo
		{
			get;
			set;
		}
        
		/// <summary>
		/// LinkURL
        /// </summary>
        [FieldName("LinkURL")]		
		public string LinkURL
		{
			get;
			set;
		}
        
		/// <summary>
		/// SellBase
        /// </summary>
        [FieldName("SellBase")]		
		public int SellBase
		{
			get;
			set;
		}
        
		/// <summary>
		/// TotalSell
        /// </summary>
        [FieldName("TotalSell")]		
		public int TotalSell
		{
			get;
			set;
		}
        
		/// <summary>
		/// TotalStock
        /// </summary>
        [FieldName("TotalStock")]		
		public int TotalStock
		{
			get;
			set;
		}
        
		/// <summary>
		/// ParamSum
        /// </summary>
        [FieldName("ParamSum")]		
		public int ParamSum
		{
			get;
			set;
		}
        
		/// <summary>
		/// IsActivity
        /// </summary>
        [FieldName("IsActivity")]		
		public bool IsActivity
		{
			get;
			set;
		}
        
		/// <summary>
		/// IsRecommend
        /// </summary>
        [FieldName("IsRecommend")]		
		public bool IsRecommend
		{
			get;
			set;
		}
        
		/// <summary>
		/// IsTop
        /// </summary>
        [FieldName("IsTop")]		
		public bool IsTop
		{
			get;
			set;
		}
        
		/// <summary>
		/// IsMustbuy
        /// </summary>
        [FieldName("IsMustbuy")]		
		public bool IsMustbuy
		{
			get;
			set;
		}
        
		/// <summary>
		/// LimitMonth
        /// </summary>
        [FieldName("LimitMonth")]		
		public int LimitMonth
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditFullName
        /// </summary>
        [FieldName("EditFullName")]		
		public string EditFullName
		{
			get;
			set;
		}
        
        public ProductData Clone()
        {
            return (ProductData)this.MemberwiseClone();
        }
        
        public ProductData()
        {
            ProductName = string.Empty;
            ProductInfo = string.Empty;
            LinkURL = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
            EditDateTime = ConvertHelper.DefaultDate;
            EditFullName = string.Empty;
        }
	}
}
